<template>
  <div>
    <div v-show="num === '0'">{{title}}的关注</div>
    <div v-show="num === '1'">{{title}}的粉丝</div>
  </div>
</template>

<script>
import {request} from 'network/request'
export default {
  name:"Follows",
  data(){
    return {
      nickname:"",
      title:this.$route.params.title,
      num:this.$route.params.num,
    }
  },
  async created(){
    const data = await request("GET",this.num === 0 ? 'user/follows' : 'user/followeds',{uid:this.$route.params.id})
    console.log(num)
    console.log(data)
  }
}
</script>

<style scoped>

</style>